package com.CmJava.crowd.service;

import com.CmJava.crowd.entity.ResultEntity;
import com.CmJava.crowd.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.ArrayList;

public interface AdminService {
    void addAdmin(Admin admin) throws Exception;

    Admin findAdmin(String adminAccount, String adminPassword);

    PageInfo<Admin> adminList(int cp, int pageNum, String keyWord);

    ResultEntity deleteAdminByList(ArrayList<String> primaryKeyList);

    ResultEntity deleteOneAdmin(String primaryKey);

    ResultEntity findOneAdmin(String primaryKey);

    ResultEntity updateOneAdmin(Admin admin);

    ResultEntity forgotPassword(String adminAccount,String email);
}
